package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据采集卡对象 bus_acquisition_card
 *
 * @author asher
 * @date 2021-12-14
 */
public class BusAcquisitionCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据采集卡主键id */
    private Long acquisitionCardId;

    /** 采集卡名称 */
    @Excel(name = "采集卡名称")
    private String name;

    /** 采集卡编号 */
    @Excel(name = "采集卡编号")
    private String code;

    /** 型号 */
    @Excel(name = "型号")
    private String modelNo;

    /** 参数 */
    @Excel(name = "参数")
    private String property;

    /** 生产厂家 */
    @Excel(name = "生产厂家")
    private String company;

    /** 数量 */
    @Excel(name = "数量")
    private Long totalQuantity;

    /** 总使用时长 */
    @Excel(name = "总使用时长")
    private Long usageTime;

    /** 使用次数 */
    @Excel(name = "使用次数")
    private String usageCount;

    /** 设备图片 */
    @Excel(name = "设备图片")
    private String pic;

    /** 启用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "启用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 采购人 */
    @Excel(name = "采购人")
    private String purchaser;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 通道数 */
    @Excel(name = "通道数")
    private String channelAmount;

    /** 对应工控机 */
    @Excel(name = "对应工控机")
    private Long deviceId;

    /** 工控机编码 */
    @Excel(name = "工控机编码")
    private String deviceCode;

    public void setAcquisitionCardId(Long acquisitionCardId)
    {
        this.acquisitionCardId = acquisitionCardId;
    }

    public Long getAcquisitionCardId()
    {
        return acquisitionCardId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setModelNo(String modelNo)
    {
        this.modelNo = modelNo;
    }

    public String getModelNo()
    {
        return modelNo;
    }
    public void setProperty(String property)
    {
        this.property = property;
    }

    public String getProperty()
    {
        return property;
    }
    public void setCompany(String company)
    {
        this.company = company;
    }

    public String getCompany()
    {
        return company;
    }
    public void setTotalQuantity(Long totalQuantity)
    {
        this.totalQuantity = totalQuantity;
    }

    public Long getTotalQuantity()
    {
        return totalQuantity;
    }
    public void setUsageTime(Long usageTime)
    {
        this.usageTime = usageTime;
    }

    public Long getUsageTime()
    {
        return usageTime;
    }
    public void setUsageCount(String usageCount)
    {
        this.usageCount = usageCount;
    }

    public String getUsageCount()
    {
        return usageCount;
    }
    public void setPic(String pic)
    {
        this.pic = pic;
    }

    public String getPic()
    {
        return pic;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setPurchaser(String purchaser)
    {
        this.purchaser = purchaser;
    }

    public String getPurchaser()
    {
        return purchaser;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setChannelAmount(String channelAmount)
    {
        this.channelAmount = channelAmount;
    }

    public String getChannelAmount()
    {
        return channelAmount;
    }
    public void setDeviceId(Long deviceId)
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId()
    {
        return deviceId;
    }
    public void setDeviceCode(String deviceCode)
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode()
    {
        return deviceCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("acquisitionCardId", getAcquisitionCardId())
                .append("name", getName())
                .append("code", getCode())
                .append("modelNo", getModelNo())
                .append("property", getProperty())
                .append("company", getCompany())
                .append("totalQuantity", getTotalQuantity())
                .append("usageTime", getUsageTime())
                .append("usageCount", getUsageCount())
                .append("pic", getPic())
                .append("startTime", getStartTime())
                .append("purchaser", getPurchaser())
                .append("status", getStatus())
                .append("channelAmount", getChannelAmount())
                .append("deviceId", getDeviceId())
                .append("deviceCode", getDeviceCode())
                .toString();
    }
}